import http from "@/api";

import { ModuleMainUrl } from "..";

const moduleUrl = ModuleMainUrl;

/** 工友积分统计的统计数 */
export const getWorkIntegralCntApi = (params: {}) => {
  return http.post(moduleUrl + `/sysitg/integralcnt`, params);
};

/** 获取工友积分统计列表*/
export const getWorkIntegralsVoListApi = (params: {}) => {
  return http.post(moduleUrl + `/sysitg/integralvolist`, params);
};

/** 修改帐号是否可以使用积分 */
export const changeWorkerFlagActiveApi = (params: {}) => {
  return http.post(moduleUrl + `/sysitg/schactive`, params);
};

/** 获取用户详情的统计列表*/
export const getWorkerIntegralDetailsApi = (params: {}) => {
  return http.post(moduleUrl + `/sysitg/itgdetails`, params);
};

/** 获取用户积分流水 - 带分页*/
export const getWorkerStreamDetailsApi = (params: {}) => {
  return http.post(moduleUrl + `/sysitg/workerstreamdetails`, params);
};
